package com.loongtech.bi.entity.core;

import java.io.Serializable;

public class KeyStringTriangle implements Serializable
{
	// 日期标识
	private String				date;
	// 属性标识1
	private String				id1;
	// 属性标识1
	private String				id2;
	private static final long	serialVersionUID	= 1L;

	public KeyStringTriangle(String date, String id1, String id2)
	{
		this.date = date;
		this.id1 = id1;
		this.id2 = id2;
	}

	public String getDate()
	{
		return date;
	}

	public void setDate(String date)
	{
		this.date = date;
	}

	public String getId1()
	{
		return id1;
	}

	public void setId1(String id1)
	{
		this.id1 = id1;
	}
	
	public String getId2()
	{
		return id2;
	}

	public void setId2(String id2)
	{
		this.id2 = id2;
	}

	@Override
	public int hashCode()
	{
		final int prime = 31;
		int result = 1;
		result = prime * result + ((date == null) ? 0 : date.hashCode());
		result = prime * result + ((id1 == null) ? 0 : id1.hashCode());
		result = prime * result + ((id1 == null) ? 0 : id1.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj)
	{
		if (this == obj)
		{
			return true;
		}
		if (obj == null || getClass() != obj.getClass())
		{
			return false;
		}
		final KeyStringTriangle o = (KeyStringTriangle) obj;
		if (date == null && o.date != null || null != date && !date.equals(o.date))
		{
			return false;
		}
		if (id1 == null && o.id1 != null || null != id1 && !id1.equals(o.id1))
		{
			return false;
		}
		if (id2 == null && o.id2 != null || null != id2 && !id2.equals(o.id2))
		{
			return false;
		}
		return true;
	}

	@Override
	public String toString()
	{
		return "KeyStringTriangle [date=" + date + ", id1=" + id1 + ", id2=" + id2 + "]";
	}	
}
